package com.joysuch.wwyt.workflow.service;

import com.alibaba.fastjson.JSONArray;
import com.joysuch.wwyt.core.common.util.MapUtils;
import org.locationtech.jts.geom.Coordinate;
import org.redisson.api.RList;

import java.util.List;

/**
 * @Author ZhaoQiuWei
 * @Date 2022/4/26 14:54
 */
public interface WorkFlowTaskDynamicService {

    void batchDeletaDynamicRecordsByTaskCode(String code);

    void saveDynamicRecords(Long processId, String formJson, String taskCode, String currentTaskNode, String formData, boolean nextTaskFlag);

    void processDynamicRecords(RList<String> records,String orgCode,Long tenentId);

    Coordinate[] getTaskCoordinate(JSONArray points);

    Coordinate[] getCoordinate(List<MapUtils.SafetyPoint> points);
}
